<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!--#include file="inc/conn.asp"-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />

<title>升级</title>
<link href="ui/layui/css/layui.css" rel="stylesheet" type="text/css" />

</head>


<body style="background-color:#FFF">
<div class="layui-container" style="padding:30px;">

<%


if request("act")="go" then
on error resume next
conn.execute ("alter table info add filter_key text null")
conn.execute ("alter table info add token varchar(36) null")
conn.execute ("alter table info add difftime number null Default 10")
conn.execute ("alter table info add ubbtype number null Default 0")

conn.execute ("alter table comment add isnice number null Default 0")
conn.execute ("alter table comment add isnote number null Default 0")
if err.number=0 then

response.write ("升级成功")
else
response.write "错误："&err.number&err.Description
end if
else%>

<div class="layui-card">
<div class="layui-card-header">
<h1>jianbook3.4 to 3.5 数据库升级</h1>
</div>
<div class="layui-card-body">
<h2>升级前的注意事项：</h2>
无论如何，请务必备份您的网站。<br />

本升级程序只能执行一次，升级过程中请勿刷新浏览器。<br />
升级后请删除本升级程序，以免被恶意利用！<br />
</div>
</div>
<div><a href="?act=go" class="layui-btn" onclick="return confirm('确定要开始升级数据库？\n请谨慎操作，不可恢复！')">我已做好升级前的准备工作，开始升级！</a></div>
<%



end if



%>


</div>






</body>
</html>
